<extend name='Public/index'/>
<block name='content'>
<button type="button" class="button" data-reveal-id="myModal">修改资料</button>
	<table class='large-12 columns'>
		<tr>
			<th colspan="6"><h4>个人资料 学期:<{$detail.term_id}></h4></th>
		</tr>
		<tr>
			<th rowspan="6" style='min-width:120px;'>个人信息</th>
			<th>姓名</th>
			<td><{$detail.sname}></td>
			<th>性别</th>
			<td><{$detail.sex}></td>
			<th rowspan="6"><img src="<{$detail.sm_photo|substr=1}>" alt=""></th>
		</tr>
		<tr>
			<th>身份证</th>
			<td><{$detail.id_card}></td>
		</tr>
		<tr>
			<th>家庭地址</th>
			<td colspan="3"><{$detail.home_addr}></td>
		</tr>
		<tr>
			<th>现居地</th>
			<td colspan="3"><{$detail.home_addr}></td>	
		</tr>		
		<tr>
			<th>毕业院校</th>
			<td><{$detail.school}></td>
			<th>学历</th>
			<td><{$detail.education}></td>	
		</tr>
		<tr>
			<th>专业</th>
			<td><{$detail.major}></td>
			<th>毕业时间</th>
			<td><{$detail.leave_time}></td>
		</tr>
		<tr>
			<th rowspan="2">联系方式</th>
			<th>联系电话</th>
			<td><{$detail.mtel}></td>
			<th>email</th>
			<td colspan="2"><{$detail.email}></td>
		</tr>
		<tr>
			<th>QQ</th>
			<td><{$detail.qq}></td>
		</tr>
		<tr>
			<th>怎么知道我们的</th>
			<td colspan="5"><{$detail.know_program}></td>
		</tr>
		<tr>
			<th>为什么学习PHP</th>
			<td colspan="5"><{$detail.try_php}></td>
		</tr>
		<tr>
			<th>学习方式</th>
			<td colspan="5"><{$detail.learn_way}></td>
		</tr>
		<tr>
			<th>学习时间</th>
			<td colspan="5"><{$detail.learn_time}></td>
		</tr>
	</table>
	<div style="padding:20px;">
  

  <div id="myModal" class="reveal-modal" data-reveal>
<form action="<{:U(doEditStudent)}>" method='post' enctype="multipart/form-data" >
<table>
<tr>
	<td>
		<table>
		<tr><td><input type="hidden" name="student_id" value="<{$Think.get.id}>"></td></tr>
					<tr>
						<td>姓名</td>
						<td><input type="text" name="sname" value=<{$detail.sname}>></td>
					</tr>
					<tr>
						<td>年龄</td>
						<td><input type="text" name="age" value=<{$detail.age}>></td>
					</tr>
					<tr>
						<td>性别</td>
						<td>
						<select name="sex" id="sex">
						<volist name="sex" id="vo">
						<option value="<{$vo.val}>"><{$vo.val}></option>
						</volist>
						</select>
						</td>
					</tr>
					<tr>
						<td>密码</td>
						<td><input type="text" name="pwd"></td>
					</tr>
					<tr>
						<td>昵称</td>
						<td><input type="text" name="nick" value=<{$detail.nick}>></td>
					</tr>
					<tr>
						<td>手机</td>
						<td><input type="text" name="mtel" value=<{$detail.tel}>></td>
					</tr>
					<tr>
						<td>备用手机</td>
						<td><input type="text" name="btel"></td>
					</tr>
					<tr>
						<td>固话</td>
						<td><input type="text" name="ftel"></td>
					</tr>
					<tr>
						<td>头像</td>
						<td><input type="file" name="photo"></td>
					</tr>
					<tr>
						<td>锁定</td>
						<td><input type="text" name="lock"></td>
					</tr>
					<tr>
						<td>学期</td>
						<td>
						<select name="term_id" id='term_no'>
						<volist name="term_no" id="vo">
						<option value="<{$vo.val}>"><{$vo.val}></option>
						</volist>
						</select>
						</td>
					</tr>
					<tr>
						<td>身份证</td>
						<td><input type="text" name="id_card" value=<{$detail.id_card}>></td>
					</tr>
		</table>
	</td>
	<td>
		<table>		
							<tr>
					<td>邮箱</td>
					<td><input type="text" name="email" value=<{$detail.email}>></td>
				</tr>
				<tr>
					<td>家庭地址</td>
					<td>
						<div id='city'>
						<select name="home_prov" id="" class='prov'></select>
						<select name="home_city" id="" class='city'></select>
						<select name="home_dist" id="" class='dist'></select>
						<input type="text">
						</div>
					</td>
				</tr>
				<tr>
					<td>现居地</td>
					<td>
					<div id='city1'>
						<select name="live_prov" id="" class='prov'></select>
						<select name="live_city" id="" class='city'></select>
						<select name="live_dist" id="" class='dist'></select>
						<input type="text">
						</div>
				    </td>
				</tr>
				<tr>
					<td>QQ</td>
					<td><input type="text" name="qq" value=<{$detail.qq}>></td>
				</tr>
				<tr>
					<td>毕业学院</td>
					<td><input type="text" name="school" value=<{$detail.school}>></td>
				</tr>
				<tr>
					<td>学历</td>
					<td>
						<select name="education" id="education">
						<volist name="education" id="vo">
						<option value="<{$vo.val}>"><{$vo.val}></option>
						</volist>
						</select>
					
					</td>
				</tr>
				<tr>
					<td>毕业时间</td>
					<td><input type="text" name="leave_time" value=<{$detail.leave_timee}>></td>
				</tr>
				<tr>
					<td>专业</td>
					<td><input type="text" name="major" value=<{$detail.major}>></td>
				</tr>
				<tr>
					<td>从何处知道我</td>
					<td><input type="text" name="know_program"></td>
				</tr>
				<tr>
					<td>PHP知道多少</td>
					<td><input type="text" name="try_php"></td>
				</tr>
				<tr>
					<td>学习方式</td>
					<td><input type="text" name="learn_way"></td>
				</tr>
				<tr>
					<td>学习时间</td>
					<td><input type="text" name="learn_time"></td>
				</tr>
		</table>
	</td>
	</tr>
	</table>
	<input class='button' type="submit" value='提交'>
	</form>
	<a class="close-reveal-modal">&times;</a>
	<script>
	$('#city').citySelect();
	$('#city1').citySelect();
	</script>
  </div>
  
</div>

<script>
$(document).ready(function() {
    $(document).foundation();
})
</script>
</block>